﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Trading.SaleGoods.SaleGoodsCategory;
using BCDto.Trading.SaleGoods.SaleGoodsCategory;
using BCEntity.Trading.SaleGoods.SaleGoodsCategory;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Trading.SaleGoods.SaleGoodsCategory
{
    /// <summary>
    /// 销售商品分类
    /// </summary>
    public interface ISaleGoodsCategoryService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="saleGoodsCategoryId">销售商品分类Id</param>
        bool Exists(long saleGoodsCategoryId);
        /// <summary>
        /// 添加销售商品分类
        /// </summary>
        /// <param name="requestDto">销售商品分类信息</param>
        SaleGoodsCategoryDto Add(SaleGoodsCategoryRequestDto requestDto);
        /// <summary>
        /// 更新销售商品分类
        /// </summary>
        /// <param name="putDto">销售商品分类信息</param>
        SaleGoodsCategoryDto Update(SaleGoodsCategoryPutDto putDto);
        /// <summary>
        /// 删除销售商品分类
        /// </summary>
        /// <param name="saleGoodsCategoryId">销售商品分类Id</param>
        bool Delete(long saleGoodsCategoryId);
        /// <summary>
        /// 获取销售商品分类
        /// </summary>
        /// <param name="saleGoodsCategoryId">销售商品分类Id</param>
        SaleGoodsCategoryDto Get(long saleGoodsCategoryId);
        /// <summary>
        /// 获取销售商品分类列表
        /// </summary>
        IEnumerable<SaleGoodsCategoryDto> GetList();
        /// <summary>
        /// 获取销售商品分类分页列表
        /// </summary>
        /// <param name="saleGoodsCategoryId">销售商品分类Id</param>
        /// <param name="enabled">启用</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">销售商品分类每页数据条数</param>
        PageableList<SaleGoodsCategoryDto> Query(long? saleGoodsCategoryId,bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        /// <summary>
        /// 启用销售商品分类
        /// </summary>
        /// <param name="saleGoodsCategoryId">销售商品分类Id</param>
        bool Enabled(long saleGoodsCategoryId);
        /// <summary>
        /// 禁用销售商品分类
        /// </summary>
        /// <param name="saleGoodsCategoryId">销售商品分类Id</param>
        bool Disabled(long saleGoodsCategoryId);
        #endregion  成员方法
    }
}